package com.traval.util;

import org.hibernate.Session;
import org.hibernate.Transaction;

import com.traval.goods.models.TGoods;


public class test_05 {

	public static void main(String[] args) {
		Session session = HibernateSessionFactory.getSession();
		Transaction tx = session.beginTransaction();
		session.delete(session.get(TGoods.class, 3));
		tx.commit();
		HibernateSessionFactory.closeSession();

	}

}
